// @ts-ignore
/* eslint-disable */
import request from "@/request";

/** 提交巡课评价 POST /api/PatrolClassEvaluation/addPatrolClass */
export async function addPatrolClassUsingPost(
  body: API.PatrolClassEvaluationRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/PatrolClassEvaluation/addPatrolClass",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 分析巡课数据 POST /api/PatrolClassEvaluation/analyzePatrolClass */
export async function reportPatrolClassStatsUsingPost(
  body: API.PatrolClassStatsRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString_>(
    "/api/PatrolClassEvaluation/analyzePatrolClass",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取巡课统计数据 POST /api/PatrolClassEvaluation/chartData */
export async function getPatrolChartDataUsingPost(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseMapStringObject_>(
    "/api/PatrolClassEvaluation/chartData",
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** 创建巡课任务 POST /api/PatrolClassEvaluation/createPatrolTask */
export async function createPatrolTaskUsingPost(
  body: API.PatrolClassRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>(
    "/api/PatrolClassEvaluation/createPatrolTask",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 查询巡课历史记录(分页) POST /api/PatrolClassEvaluation/myRecords */
export async function getMyDormitoryRecordsUsingPost1(
  body: API.PatrolClassEvaluationVO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePagePatrolClassEvaluationVO_>(
    "/api/PatrolClassEvaluation/myRecords",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
